package com.wulian.dao;

import com.wulian.entities.Record;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xf
 * @date 2021/3/20 下午 5:27
 * @Description
 */
@Repository
public interface RecordDao {

    List<Record> getAll();

    List<Record> getAllByPage(@Param("pageNum")Integer num, @Param("pageSize")Integer size);

    Record getRecordById(Long id);

    void addRecord(Record record);

    void updateRecord(Record record);

    void deleteRecord(Long id);
}
